package edu.dali.enterprise_test.service.auth;


import edu.dali.enterprise_test.model.Pager;
import edu.dali.enterprise_test.model.vo.Dto;
import edu.dali.enterprise_test.model.vo.SysPermission;
import edu.dali.enterprise_test.model.vo.SysRole;
import edu.dali.enterprise_test.model.vo.UserInfo;

import java.util.List;

public interface AuthService {
    public UserInfo selectUser(Dto dto);

    public Pager getUserInfoByPage(Dto dto);

    public void addUser(UserInfo user);

    public void updateUser(UserInfo user);

    public void deleteUser(Long uid);

    public List<SysRole> getAllRoles(Dto dto);

    public List<SysPermission> getAllPermissions(Dto dto);

    /**
     * 修改密码
     * @param uid
     */
    public void updatePwd(String uid, String upwd);
}
